package com.futures.investm.adapter;


import android.widget.ImageView;

import com.futures.investm.R;
import com.futures.investm.entity.ExchangeEntity;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;

import tech.com.commoncore.manager.GlideManager;


public class ExchangeAdapter extends BaseQuickAdapter<ExchangeEntity,BaseViewHolder> {


    public ExchangeAdapter(int layoutResId) {
        super(layoutResId);
    }

    @Override
    protected void convert(BaseViewHolder helper, ExchangeEntity item) {
//        helper.setText(R.id.tv_num,item.getCountry());
//        //交易所
//        helper.setText(R.id.tv_exchange,item.getCountry());
//        //24h交易额/¥
//        helper.setText(R.id.tv_chengjiaoe,item.getTurnover());


        helper.setText(R.id.tv_bizhong,item.getCountry());

        ImageView view = helper.getView(R.id.img);



        GlideManager.loadImg(item.getImg(),view);

        //成交额
        helper.setText(R.id.tv_chengjiaoe,item.getTurnover());
    }
}
